package com.whfp.coky.ui.entry.model

import android.os.Parcel
import android.os.Parcelable

/**
 *
 *
 * created by coky on 2022/4/7
 */
class ActivationBea() :Parcelable{
    var ctDeviceId: String? = null
    var ctDeviceMac: String? = null
    var areaName: String? = null
    var linkSys: String? = null

    constructor(parcel: Parcel) : this() {
        ctDeviceId = parcel.readString()
        ctDeviceMac = parcel.readString()
        areaName = parcel.readString()
        linkSys = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(ctDeviceId)
        parcel.writeString(ctDeviceMac)
        parcel.writeString(areaName)
        parcel.writeString(linkSys)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<ActivationBea> {
        override fun createFromParcel(parcel: Parcel): ActivationBea {
            return ActivationBea(parcel)
        }

        override fun newArray(size: Int): Array<ActivationBea?> {
            return arrayOfNulls(size)
        }
    }
}